package org.test.minbox.client;

import org.minbox.framework.logging.client.admin.discovery.support.LoggingAppointAdminDiscovery;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class AdminDiscovery  {

    @Bean
    @ConditionalOnMissingBean
    public LoggingAppointAdminDiscovery loggingConfigAdminDiscovery() {
        // 初始化Logging Admin地址列表
        //String[] adminAddressArray = {"127.0.0.1:9091,127.0.0.1:9090"};
        String[] adminAddressArray = {"127.0.0.1:9091"};
        LoggingAppointAdminDiscovery appointAdminDiscovery = new LoggingAppointAdminDiscovery(adminAddressArray);
        return appointAdminDiscovery;
    }


}
